/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mundo;

import Multimedia.MediaVideo;
import gui.Login;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
//import org.jvnet.substance.*;
//import org.jvnet.substance.skin.CremeCoffeeSkin.*;


/**
 *
 * @author arquitectura
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException, UnsupportedLookAndFeelException {
        // TODO code application logic here
        JFrame.setDefaultLookAndFeelDecorated(false);


        //UIManager.setLookAndFeel("org.jvnet.substance.skin.SubstanceRavenGraphiteLookAndFeel");

        //SubstanceLookAndFeel.setSkin("org.jvnet.substance.skin.CremeSkin");
        //SubstanceLookAndFeel.setCurrentTheme("org.jvnet.substance.theme.SubstanceAquaTheme"); // Se aplica el tema Aqui de Substance
        //SubstanceLookAndFeel.setCurrentWatermark("org.jvnet.substance.watermark.SubstanceBinaryWatermark");//Ejemplo de aplicacion de un watermark de Substance
        //SubstanceLookAndFeel.setCurrentWatermark(new SubstanceImageWatermark("http://72.29.81.246/~imindjav/images/Login.jpg"));
        //SubstanceLookAndFeel.setImageWatermarkOpacity(new Float(1));

        //Inicio de Video
        MediaVideo videoInicio = new MediaVideo();
        videoInicio.ReproducirIntro();

        //Carga de Interfaz en tiempo fin del Video de inicio
        Thread hilo = new Thread();
        try {
            hilo.sleep(75000);
            videoInicio.desabilitarFrame();
            Login l = new Login();

            l.setVisible(true);
        } catch (InterruptedException ex) {
            Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        }


    }
}
